import 'package:flutter/material.dart';

void main() {
  runApp(new MaterialApp(
    home: Scaffold(
      appBar: AppBar(
        title: Text("Constrainedbox配置说明"),
      ),
      body: ConstrainedBox(
          constraints: BoxConstraints(
            minHeight: 100,
            minWidth: double.infinity,
            maxHeight: 200,
            //maxWidth: 100
          ),
          child: Container(color: Colors.pink),
      ),
    ),
  ));
}
